package com.yao.h2demo;

import com.yao.h2demo.server.TcpServer;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.sql.SQLException;

/**
 * h2可以有三种运行方式
 * 1.内嵌模式 url=jdbc:h2:file:./test
 * 2.服务模式 url=jdbc:h2:tcp://localhost/./test
 * 3.内存模式 url=jdbc:h2:mem:test
 * @author yys1892
 */
@SpringBootApplication
public class H2DemoApplication  {


    public static void main(String[] args) throws SQLException {
        new TcpServer();
        SpringApplication.run(H2DemoApplication.class, args);
    }



}
